package com.mz.ozy.bean;

import com.contrarywind.interfaces.IPickerViewData;

import java.io.Serializable;

/**
 * Created by Administrator on 2017/7/4.
 */

public class DbBean implements IPickerViewData,Serializable {

   /* model.areaName = [resultSet stringForColumn:@"AreaName"];
    model.areaLevel = [resultSet stringForColumn:@"AreaLevel"];
    model.idStr = [resultSet stringForColumn:@"AreaId"];
    model.parentid = [resultSet stringForColumn:@"ParentId"];*/
    private String id;
    private String areaName;
    private String areaLevel;
    private String parentid;

    public DbBean() {
    }

    public DbBean(String id, String areaName) {
        this.id = id;
        this.areaName = areaName;
    }

    public DbBean(String id, String areaName, String areaLevel, String parentid) {
        this.id = id;
        this.areaName = areaName;
        this.areaLevel = areaLevel;
        this.parentid = parentid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getAreaLevel() {
        return areaLevel;
    }

    public void setAreaLevel(String areaLevel) {
        this.areaLevel = areaLevel;
    }

    public String getParentid() {
        return parentid;
    }

    public void setParentid(String parentid) {
        this.parentid = parentid;
    }

    @Override
    public String getPickerViewText() {
        return areaName;
    }
}
